import request from "@/config/utils/request";

// 业务数据请求接口
export function getList(data) {
  return request({
    url: "/apis/asca/template/data/get",
    method: "post",
    data
  });
}

// 业务数据请求接口  主合同清单动态获取
export function getListInfo(data) {
  return request({
    url: "/apis/asca/users/signup/request/channel/execute",
    method: "post",
    data
  });
}

// 账号冻结申请接口
export function accounntFrozen(data) {
  return request({
    url: "/apis/asca/approval/accountFrozen",
    method: "post",
    data
  });
}

// 判断当前用户有没有审批权限
export function inspection(data) {
  return request({
    url: "/apis/asca/approval/inspection",
    method: "post",
    data
  });
}

// 审批记录F
export function getApprovalRecord(data) {
  return request({
    // url: "/apis/asca/approval/record/list",
    url: "/apis/asca/approval/record/v1/list",
    method: "post",
    data
  });
}

// 阅读记录
export function getReadRecord(data) {
  return request({
    url: "/apis/asca/read/record/list",
    method: "post",
    data
  });
}

// 查询审批按钮
export function getApprovalButton(data) {
  return request({
    url: "/apis/asca/authority/approval/button/query",
    method: "post",
    data
  });
}

// 提交审批操作
export function getApprovalExecute(data) {
  return request({
    url: "/apis/asca/approval/execute",
    method: "post",
    data
  });
}

// 退回人员选择查询
export function getReturnPerson(data) {
  return request({
    url: "/apis/asca/approval/return/person/select/query",
    method: "post",
    data
  });
}

// 转审协办团体查询
export function getPartyRelationTree(data) {
  return request({
    url: "/apis/asca/approval/party/relation/tree/get",
    method: "post",
    data
  });
}

// 知会提交审批操作
export function getReadMsgBatchAdd(data) {
  return request({
    //  url: "/apis/asca/read/msg/batchAdd",
    url: "/apis/asca/read/msg/inform",
    method: "post",
    data
  });
}

// 导出
export function getExcelExport(data) {
  return request({
    url: "/apis/asca/excel/exportExcel",
    method: "get",
    data
  });
}

// 更新查看
export function getUpdataRead(data) {
  return request({
    url: "/apis/asca/read/msg/status/update",
    method: "post",
    data
  });
}

export function getProtoclList(data) {
  return request({
    url: "/apis/asca/users/signup/request/channel/execute",
    method: "post",
    data
  });
}

export function getSmpWfcDetail(data) {
  return request({
    url: "/apis/smp/wfc/getDetail",
    method: "post",
    data
  });
}

//列表
export function orderList(data,type) {
  return request({
    url: "/apis/smp/approval/list/payment/"+type,
    method: "post",
    data
  });
}


// id查询
export function getOrder(data) {
  return request({
    url: "/apis/smp/ocorder/getOrder",
    method: "POST",
    data
  });
}

//币种
export function getCurrencyTypeDict(data) {
  return request({
    url: "/apis/smp/basic/getCurrencyTypeDict",
    method: "POST",
    data
  });
}


//查询审批记录
export function getRecord(data) {
  return request({
    url: "/apis/smp/approval/get/record",
    method: "POST",
    data
  });
}



